package net.wanho.shop.service;

import com.github.pagehelper.PageInfo;
import net.wanho.shop.dto.GoodsDTO;
import net.wanho.shop.dto.GoodsPicsAttrsDTO;
import net.wanho.shop.po.Goods;
import net.wanho.shop.vo.GoodsOneVO;
import net.wanho.shop.vo.PageVo;

import java.io.Serializable;

/**
 * <p>
 * 商品表 服务类
 * </p>
 *
 * @author 猛虎王
 * @since 2024-12-24
 */
public interface GoodsService {
    PageInfo findPage(int pageNum, int pageSize, Goods goods);

    GoodsOneVO findById(Integer goodsId);

    void add(Goods goods);

    void modify(GoodsDTO goodsDTO);

    void removeById(Serializable goodsId);


    PageVo find(Integer pageNum, Integer pageSize, GoodsDTO goodsDTO);

    void addGoods(GoodsPicsAttrsDTO goodsPicsAttrsDTO);

    void updateByIdState(Integer goodsId, Integer goodsState);
}
